//
//  LZYViewController.h
//  Supervisor
//
//  Created by 小宇 on 2017/5/10.
//  Copyright © 2017年 北京怀教网络科技股份有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIImage+Color.h"

@protocol  BBBaseViewControllerDataSource<NSObject>

@optional
-(NSMutableAttributedString*)setTitle;
-(NSString*)setNavTitle;
-(UIButton*)set_leftButton;
-(UIButton*)set_rightButton;
-(UIColor*)set_colorBackground;
-(CGFloat)set_navigationHeight;
-(UIView*)set_bottomView;
-(UIImage*)navBackgroundImage;
-(BOOL)hideNavigationBottomLine;
-(UIImage*)set_leftBarButtonItemWithImage;
-(UIImage*)set_rightBarButtonItemWithImage;
- (UITableView *)set_tableViewWithFrame;
- (BOOL)setHeaderAndFooterRefresh;
- (NSDictionary *)sendParameterWithGet;
- (NSDictionary *)sendParameterWithRefreshGet;
- (NSInteger )set_tableViewRows;
- (UITableViewCell *)set_tableViewCell;
- (NSArray *)set_tableViewHeight;

@end


@protocol BBBaseViewControllerDelegate <NSObject>

@optional

-(void)left_button_event:(UIButton*)sender;
-(void)right_button_event:(UIButton*)sender;
-(void)title_click_event:(UIView*)sender;
- (void)showNewStatusesMessage:(NSInteger) count;
- (void)showMessage:(NSString *) message;
@end

typedef void(^NetWorkBlock)(id responseDic);
typedef void(^NetWorkMoreBlock)(id responseDic);

@interface LZYBaseViewController : UIViewController<BBBaseViewControllerDataSource , BBBaseViewControllerDelegate>
@property (nonatomic, copy) NetWorkBlock netWorkBlock;
@property (nonatomic, copy) NetWorkMoreBlock netWorkMoreBlock;
-(void)changeNavigationBarTranslationY:(CGFloat)translationY;
-(void)set_Title:(NSMutableAttributedString *)title;
@end
